package com.example.sls.service.impl.logistics;

import com.example.sls.pojo.logistics.EquipmentRentals;
import com.example.sls.dao.logistics.EquipmentRentalsDao;
import com.example.sls.service.intserfaces.logistics.EquipmentRentalsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 设备租借记录表(EquipmentRentals)表服务实现类
 *
 * @author 蓝江富
 * @since 2024-06-18 10:54:51
 */
@Service
public class EquipmentRentalsServiceImpl implements EquipmentRentalsService {
  @Autowired
  EquipmentRentalsDao equipmentRentalsDao;

  @Override
  public EquipmentRentals queryById(Integer id) {
    return equipmentRentalsDao.queryById(id);
  }

  @Override
  public int deleteById(Integer id) {
    return equipmentRentalsDao.deleteById(id);
  }

  @Override
  public int update(EquipmentRentals equipmentRentals) {
    return equipmentRentalsDao.update(equipmentRentals);
  }

  @Override
  public int insert(EquipmentRentals equipmentRentals) {
    return equipmentRentalsDao.insert(equipmentRentals);
  }

  @Override
  public long count() {
    return equipmentRentalsDao.count();
  }

  @Override
  public List<EquipmentRentals> queryAllByLimit(EquipmentRentals equipmentRentals, Integer pageSize, Integer offset) {
    return equipmentRentalsDao.queryAllByLimit(equipmentRentals, pageSize, offset);
  }
}
